﻿namespace WMS6.Web.InventoryMgtServiceRef
{
    using System;
    using System.CodeDom.Compiler;
    using System.ComponentModel;
    using System.Diagnostics;
    using System.Runtime.CompilerServices;
    using System.Runtime.Serialization;

    [Serializable, DebuggerStepThrough, GeneratedCode("System.Runtime.Serialization", "3.0.0.0"), DataContract(Name="InvLotLocLpnInfo", Namespace="http://schemas.datacontract.org/2004/07/WMS6.DataEntity")]
    public class InvLotLocLpnInfo : IExtensibleDataObject, INotifyPropertyChanged
    {
        [OptionalField]
        private decimal AllocatedQtyField;
        [OptionalField]
        private DateTime ArchiveDateField;
        [OptionalField]
        private decimal ArchiveQtyField;
        [OptionalField]
        private decimal AvailableQtyField;
        [OptionalField]
        private string CreatedByField;
        [OptionalField]
        private DateTime CreatedDateField;
        [OptionalField]
        private decimal ExpectedQtyField;
        [NonSerialized]
        private ExtensionDataObject extensionDataField;
        [OptionalField]
        private string LocField;
        [OptionalField]
        private string LotField;
        [OptionalField]
        private string LpnIDField;
        [OptionalField]
        private string OwnerIDField;
        [OptionalField]
        private decimal PendingMoveInField;
        [OptionalField]
        private decimal PickedQtyField;
        [OptionalField]
        private decimal PickinprocessQtyField;
        [OptionalField]
        private decimal QtyField;
        [OptionalField]
        private int RowIDField;
        [OptionalField]
        private string SkuIDField;
        [OptionalField]
        private string StatusField;
        [OptionalField]
        private byte[] TsField;
        [OptionalField]
        private string UpdatedByField;
        [OptionalField]
        private DateTime UpdatedDateField;
        [OptionalField]
        private string WhIDField;

        public event PropertyChangedEventHandler PropertyChanged;

        protected void RaisePropertyChanged(string propertyName)
        {
            PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
            if (propertyChanged != null)
            {
                propertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }

        [DataMember]
        public decimal AllocatedQty
        {
            get
            {
                return this.AllocatedQtyField;
            }
            set
            {
                if (!this.AllocatedQtyField.Equals(value))
                {
                    this.AllocatedQtyField = value;
                    this.RaisePropertyChanged("AllocatedQty");
                }
            }
        }

        [DataMember]
        public DateTime ArchiveDate
        {
            get
            {
                return this.ArchiveDateField;
            }
            set
            {
                if (!this.ArchiveDateField.Equals(value))
                {
                    this.ArchiveDateField = value;
                    this.RaisePropertyChanged("ArchiveDate");
                }
            }
        }

        [DataMember]
        public decimal ArchiveQty
        {
            get
            {
                return this.ArchiveQtyField;
            }
            set
            {
                if (!this.ArchiveQtyField.Equals(value))
                {
                    this.ArchiveQtyField = value;
                    this.RaisePropertyChanged("ArchiveQty");
                }
            }
        }

        [DataMember]
        public decimal AvailableQty
        {
            get
            {
                return this.AvailableQtyField;
            }
            set
            {
                if (!this.AvailableQtyField.Equals(value))
                {
                    this.AvailableQtyField = value;
                    this.RaisePropertyChanged("AvailableQty");
                }
            }
        }

        [DataMember]
        public string CreatedBy
        {
            get
            {
                return this.CreatedByField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CreatedByField, value))
                {
                    this.CreatedByField = value;
                    this.RaisePropertyChanged("CreatedBy");
                }
            }
        }

        [DataMember]
        public DateTime CreatedDate
        {
            get
            {
                return this.CreatedDateField;
            }
            set
            {
                if (!this.CreatedDateField.Equals(value))
                {
                    this.CreatedDateField = value;
                    this.RaisePropertyChanged("CreatedDate");
                }
            }
        }

        [DataMember]
        public decimal ExpectedQty
        {
            get
            {
                return this.ExpectedQtyField;
            }
            set
            {
                if (!this.ExpectedQtyField.Equals(value))
                {
                    this.ExpectedQtyField = value;
                    this.RaisePropertyChanged("ExpectedQty");
                }
            }
        }

        [Browsable(false)]
        public ExtensionDataObject ExtensionData
        {
            get
            {
                return this.extensionDataField;
            }
            set
            {
                this.extensionDataField = value;
            }
        }

        [DataMember]
        public string Loc
        {
            get
            {
                return this.LocField;
            }
            set
            {
                if (!object.ReferenceEquals(this.LocField, value))
                {
                    this.LocField = value;
                    this.RaisePropertyChanged("Loc");
                }
            }
        }

        [DataMember]
        public string Lot
        {
            get
            {
                return this.LotField;
            }
            set
            {
                if (!object.ReferenceEquals(this.LotField, value))
                {
                    this.LotField = value;
                    this.RaisePropertyChanged("Lot");
                }
            }
        }

        [DataMember]
        public string LpnID
        {
            get
            {
                return this.LpnIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.LpnIDField, value))
                {
                    this.LpnIDField = value;
                    this.RaisePropertyChanged("LpnID");
                }
            }
        }

        [DataMember]
        public string OwnerID
        {
            get
            {
                return this.OwnerIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.OwnerIDField, value))
                {
                    this.OwnerIDField = value;
                    this.RaisePropertyChanged("OwnerID");
                }
            }
        }

        [DataMember]
        public decimal PendingMoveIn
        {
            get
            {
                return this.PendingMoveInField;
            }
            set
            {
                if (!this.PendingMoveInField.Equals(value))
                {
                    this.PendingMoveInField = value;
                    this.RaisePropertyChanged("PendingMoveIn");
                }
            }
        }

        [DataMember]
        public decimal PickedQty
        {
            get
            {
                return this.PickedQtyField;
            }
            set
            {
                if (!this.PickedQtyField.Equals(value))
                {
                    this.PickedQtyField = value;
                    this.RaisePropertyChanged("PickedQty");
                }
            }
        }

        [DataMember]
        public decimal PickinprocessQty
        {
            get
            {
                return this.PickinprocessQtyField;
            }
            set
            {
                if (!this.PickinprocessQtyField.Equals(value))
                {
                    this.PickinprocessQtyField = value;
                    this.RaisePropertyChanged("PickinprocessQty");
                }
            }
        }

        [DataMember]
        public decimal Qty
        {
            get
            {
                return this.QtyField;
            }
            set
            {
                if (!this.QtyField.Equals(value))
                {
                    this.QtyField = value;
                    this.RaisePropertyChanged("Qty");
                }
            }
        }

        [DataMember]
        public int RowID
        {
            get
            {
                return this.RowIDField;
            }
            set
            {
                if (!this.RowIDField.Equals(value))
                {
                    this.RowIDField = value;
                    this.RaisePropertyChanged("RowID");
                }
            }
        }

        [DataMember]
        public string SkuID
        {
            get
            {
                return this.SkuIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.SkuIDField, value))
                {
                    this.SkuIDField = value;
                    this.RaisePropertyChanged("SkuID");
                }
            }
        }

        [DataMember]
        public string Status
        {
            get
            {
                return this.StatusField;
            }
            set
            {
                if (!object.ReferenceEquals(this.StatusField, value))
                {
                    this.StatusField = value;
                    this.RaisePropertyChanged("Status");
                }
            }
        }

        [DataMember]
        public byte[] Ts
        {
            get
            {
                return this.TsField;
            }
            set
            {
                if (!object.ReferenceEquals(this.TsField, value))
                {
                    this.TsField = value;
                    this.RaisePropertyChanged("Ts");
                }
            }
        }

        [DataMember]
        public string UpdatedBy
        {
            get
            {
                return this.UpdatedByField;
            }
            set
            {
                if (!object.ReferenceEquals(this.UpdatedByField, value))
                {
                    this.UpdatedByField = value;
                    this.RaisePropertyChanged("UpdatedBy");
                }
            }
        }

        [DataMember]
        public DateTime UpdatedDate
        {
            get
            {
                return this.UpdatedDateField;
            }
            set
            {
                if (!this.UpdatedDateField.Equals(value))
                {
                    this.UpdatedDateField = value;
                    this.RaisePropertyChanged("UpdatedDate");
                }
            }
        }

        [DataMember]
        public string WhID
        {
            get
            {
                return this.WhIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.WhIDField, value))
                {
                    this.WhIDField = value;
                    this.RaisePropertyChanged("WhID");
                }
            }
        }
    }
}

